<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script src="http://code.jquery.com/jquery-1.4.4.min.js">
</script>
<script>
	
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>
<style>
*{
	font-size:28px;
	padding:0;
	margin:0;
	
	}
	td{
		border:#666 solid 1px;
		font-size:24px;
	}
</style>
<body>

<form method="post" action="__URL__/result/type/{$type}">
<div  style=" background:url(__TMPL__images/cb2.jpg); width:100%; height:120px; line-height:60px;">
筛选：<select name="level_id" id="level_id">
						    <option value="">选择年级</option>
                             <volist name="levellist" id="vo">
						    <option value="{$vo.id}">{$vo.level_name}</option>
					      </volist>
                          </select>
		<select name="term" id="term">
<option value="">选择学期</option>
<option value="1">上学期</option>
<option value="2">下学期</option>
</select>

						<select name="exam_id" id="exam_id">
<option value="">选择考试</option>
</select><br />
<select name="class_id" id="class_id">
<option value="">班级</option>
<volist name="finalclasslist" id="vo">
<option value="{$vo.id}">{$vo.class_name}</option>
</volist>
</select>
<input name="name" type="text" class="ui-input" id="name" size="12"> 
&nbsp;<input name="提交" style="background:url(__TMPL__/images/search.jpg); width:112px; height:52px; border:0" type="submit" value=" " />
</div>
</form>
</p>
<if condition="($examinfo neq '') and ($classinfo neq '')">
<div style="text-align:center ; height:80px; line-height:80px;">{$examinfo.exam_name}</div>
<div >&nbsp; 班级：{$classinfo.class_name}</div>
<table width="98%" border="0"  class="table table-bordered nowrap">
  <tr>
  <th >学号</th>
    <th>姓名</th>
     <volist name="subject" id="sj">
	<th>{$sj.KCMC}</th>
	</volist>
 </tr>
 <volist name="stlist" id="vs">

 <tr>
  <td >{$vs.XH}</td>
    <td>{$vs.XM}</td>
     <volist name="subject" id="sj">
	<td>{~loadscoreresult($examinfo[id],$vs['id'],$sj['id'])}</td>
	</volist>
 </tr>
</volist>
</table>
</if>



</body>
</html>
